<?php 
use Yii\helpers\Html;
use yii\bootstrap\Nav;


//菜单
$menuItem = [];
if ($access = Yii::$app->params['access']) {
    isset($access['SYSTEM']['COIN']) && $menuItem[] = ['label' => '支付', 'url' => ['/system/coin']];
    isset($access['SYSTEM']['CHANGECOIN']) && $menuItem[] = ['label' => '充值', 'url' => ['/system/changecoin']];
} else {
    $menuItem = [
        ['label' => '支付', 'url' => ['/system/coin']],
        ['label' => '充值', 'url' => ['/system/changecoin']],
    ];
}


echo Nav::widget([
    'options' => ['class' => 'nav nav-tabs mbm'],
    'items' => $menuItem,
]);

?>